package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.bind.DefaultValue;

@Getter
@Setter
  @ApiModel(value = "Creative对象", description = "")
public class Creative implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("发布创意的用户")
      private Integer userId;

      @ApiModelProperty("创意名称")
      private String name;

      @ApiModelProperty("创意描述")
      private String detail;

      @ApiModelProperty("创意特征")
      private String feature;

      @ApiModelProperty("创意草图")
      private String sketch;

      @ApiModelProperty("草图描述")
      private String sketchInfo;

      @ApiModelProperty("创意图片")
      private String picture;

      @ApiModelProperty("图片描述")
      private String picInfo;

      @ApiModelProperty("创意视频")
      private String video;

      @ApiModelProperty("视频描述")
      private String videoInfo;

      @ApiModelProperty("创意类型")
      private String type;

      @ApiModelProperty("浏览人数")
      private Integer view;

      @ApiModelProperty("创意状态")
      private String statement;

      @ApiModelProperty("生成时间")
      @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
      private LocalDateTime createTime;

      /**
      * 评论数
      */
      @TableField(exist = false)
      private int comments = 0;

      /**
      * 收藏数
      */
      @TableField(exist = false)
      private int collections = 0;


}
